#ifndef ADD_ATV_H
#define ADD_ATV_H
#include"tcl_mstar_atv_tv.h"
#include "tcl_mtk_atv_tv.h"
#include <QWidget>
#include <QMessageBox>

namespace Ui {
class Add_ATV;
}

class Add_ATV : public QWidget
{
    Q_OBJECT
    
public:
    explicit Add_ATV(int,int,QList<uint> *,QMap<uint,uchar> *,QWidget *parent = 0);
   // Add_ATV(int,int,QWidget *parent=0);
    ~Add_ATV();
signals:
    void Add_MTK_ATV(TCL_MTK_ATV_TV*);
    void Add_MSTAR_ATV(TCL_MSTAR_ATV_TV*);
private slots:
    void Confirm();
    void Check_Freq();
    void Check_Num();
private:
    Ui::Add_ATV *ui;
    QList<uint> *atv_num;
    QMap<uint,uchar> *dtv_num;
   // QLabel *msg;
    int solution;
    int ch_val;
    void My_Init();
    int Check_Num(int num);

};

#endif // ADD_ATV_H
